package config

import (
	"fmt"
	"github.com/go-ini/ini"
	"os"
)

var (
	Conf =New()
)

func New() *ini.File {
	config, err := ini.Load("./conf/config.ini")
	if err != nil {
		fmt.Printf("Fail to read file: %v", err)
		os.Exit(1)
	}
	return config
}
